var app = getApp();

Page({
    data: {},
    onLoad: function(t) {
        this.setData({
            url: wx.getStorageSync("url")
        });
    },
    search: function(t) {
        console.log(t);
        var n = this, o = t.detail.value;
        "" != o ? app.util.request({
            url: "entry/wxapp/ActivityList",
            data: {
                keywords: o
            },
            success: function(t) {
                console.log(t), 0 < t.data.length && n.setData({
                    search: !0,
                    search_list: t.data
                });
            }
        }) : n.setData({
            search: !1
        });
    },
    info: function(t) {
        console.log(t);
        var n = t.currentTarget.id;
        wx.navigateTo({
            url: "../activeinfo/activeinfo?id=" + n
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});